package ${pkgName};

import java.io.Serializable;
<#list imports as im>
import ${im};
</#list>
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
/**
 * ${className}
 * @author generator
 * @date ${.now?date?string('yyyy年MM月dd日')}
 */
@ApiModel(value="${className}DTO",description="${tableRemark}")
public class ${className}DTO implements Serializable {
	
	private static final long serialVersionUID = 1L;
	<#list fields as field>
	/**
	  * ${field.comment}
	  * nullable:${field.nullable?string('true','false')},length:${field.length}
	  */
	@ApiModelProperty(value = "${field.comment???string(field.comment,field.name)}",required = ${field.nullable?string('false','true')},notes = "${field.comment} <#if field.primaryKey>[自增]</#if>")
	private ${field.propType} ${field.name};
	</#list>
    <#list fields as field>
    public ${field.propType} get${getFieldMethodName(field.name)}(){
    	return this.${field.name};
    }
    public void set${getFieldMethodName(field.name)}(${field.propType} ${field.name}){
    	this.${field.name} = ${field.name};
    }
	</#list>
   	<#-- 多主键 -->
    <#if (primaryKeys?size>1)>
    public static class PK {
    	<#list primaryKeys as field>
		private ${field.propType} ${field.name};
		public ${field.propType} get${getFieldMethodName(field.name)}(){
	    	return this.${field.name}
	    }
	    public void set${getFieldMethodName(field.name)}(${field.propType} ${field.name}){
	    	this.${field.name} = ${field.name};
	    }
		</#list>
    }
    </#if>
    // ==== 自定义属性 ====
}